package coolapk.cj.cj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wenjunjun9
 * @created 2021-02-16 16:27
 * @description
 */
@Data
@TableName("t_person")
public class Person implements Serializable {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 参与者qq
     */
    private String qq;

    /**
     * 参与者ip
     */
    private String ip;

    /**
     * 参与抽奖的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 奖品的id
     */
    private Long goodsId;

    /**
     * 奖品的名称，为了方便所以直接加上了商品名称
     */
    private String goodsName;
}
